import { ref } from 'vue'

export default function() {
  const dialogVisible = ref(false) // 窗口显示隐藏

  const open = () => {
    dialogVisible.value = true
  }

  const close = () => {
    dialogVisible.value = false
  }

  return {
    dialogVisible,
    open,
    close
  }
}